﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace WebView_SSResourceManager
{
    public static class ManagerRoles
    {
        public static void CreateRoles()
        {
            var arrayRoles = new[]
                {
                    "Admin",
                    "User"
                };
            foreach (var role in arrayRoles.Where(role => !Roles.RoleExists(role)))
            {
                Roles.CreateRole(role);
            }
        }
    }
}
